﻿using System.Collections.Generic;

namespace Inovout.Models
{
    public class DataObjectPagedSet<TModel> : DataObjectSet<TModel>, IDataObjectPagedSet<TModel>, IEnumerable<TModel>
    {
        public int ResultCount { get; private set; }
        public int PageIndex { get; private set; }
        public int PageSize { get; private set; }
        public DataObjectPagedSet(ICollection<TModel> list, int resultCount, int pageSize, int pageIndex)
            : base(list)
        {
            PageSize = pageSize;
            PageIndex = pageIndex;
            ResultCount = resultCount;
        }
    }
}
